#ifndef _SERVER_CLIENT_H
#define _SERVER_CLIENT_H

#include <netinet/in.h>
#include <time.h>

#include "config.h"
#include "protocol.h"

#define CLIENT_IDLE_MAX	60

typedef struct client_t {
	int fd;
	//	struct sockaddr_in addr;
	struct client_t * next;
	time_t idle;
	Protocol_t* protocol;
} Client_t;

/* server/client.c */
Client_t * client_create(int fd);
void client_destroy( Client_t * client );
int client_run( Client_t * client );

#endif
